#!/usr/bin/python3
# -*- coding.utf-8 -*-

from day1 import day01
from day02 import day02
from day03 import res_app
import uvicorn

'''
    主入口
'''

from fastapi import FastAPI

app = FastAPI(
    title="沃林学生管理系统",
    description="对沃林所有的学员，学习过程，班级，成绩进行管理",
    version="v0.0.1"
)

# 加载子路由
app.include_router(day01, prefix="/day01", tags=["API 基础接口概念"])
app.include_router(day02, prefix="/day02", tags=["API Pydantic的使用"])
app.include_router(res_app, prefix="/resp", tags=["API Response模型的使用"])


if __name__ == '__main__':
    uvicorn.run('main:app', host='localhost', port=8000, reload=True)